/**
 * 
 */
package name.webdizz.gadget.four.envelope.client.domain;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author Izzet_Mustafayev
 * 
 */
public class Envelope {

	private Map<String, List<ExpenseItem>> goals = new HashMap<String, List<ExpenseItem>>();

	private Map<String, List<ExpenseItem>> expenses = new HashMap<String, List<ExpenseItem>>();

	private List<Person> persons = new ArrayList<Person>();

	private Float size;

	private User user;

	protected Envelope() {
	}

	private static final Envelope ENVELOPE = new Envelope();

	public static Envelope instance() {
		return ENVELOPE;
	}

	/**
	 * @return the goals
	 */
	public Map<String, List<ExpenseItem>> getGoals() {
		return goals;
	}

	/**
	 * @param goals
	 *            the goals to set
	 */
	public void setGoals(Map<String, List<ExpenseItem>> goals) {
		this.goals = goals;
	}

	/**
	 * @return the expenses
	 */
	public Map<String, List<ExpenseItem>> getExpenses() {
		return expenses;
	}

	/**
	 * @param expenses
	 *            the expenses to set
	 */
	public void setExpenses(Map<String, List<ExpenseItem>> expenses) {
		this.expenses = expenses;
	}

	/**
	 * @return the persons
	 */
	public List<Person> getPersons() {
		return persons;
	}

	/**
	 * @param persons
	 *            the persons to set
	 */
	public void setPersons(List<Person> persons) {
		this.persons = persons;
	}

	/**
	 * @return the size
	 */
	public Float getSize() {
		return size;
	}

	/**
	 * @param size
	 *            the size to set
	 */
	public void setSize(final Float size) {
		this.size = size;
	}

	/**
	 * @return the user
	 */
	public User getUser() {
		return user;
	}

	/**
	 * @param user
	 *            the user to set
	 */
	public void setUser(final User user) {
		this.user = user;
	}

}
